<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>孕育宝典 - 个人资料</title>
        <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
        <style>
            body {
                font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
                background-color: #f5f5f5;
                color: #333333;
                margin: 0;
                padding: 0;
            }
            .device-container {
                width: 390px;
                height: 844px;
                overflow: hidden;
                position: relative;
                background-color: #f5f5f5;
            }
            .status-bar {
                height: 44px;
                background-color: #ffffff;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0 20px;
                font-size: 14px;
                font-weight: 600;
            }
            .header {
                background-color: #ffffff;
                padding: 12px 16px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid #f0f0f0;
            }
            .nav-bar {
                height: 60px;
                background-color: #ffffff;
                position: absolute;
                bottom: 0;
                width: 100%;
                display: flex;
                justify-content: space-around;
                align-items: center;
                border-top: 1px solid #f0f0f0;
            }
            .nav-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                color: #666666;
                font-size: 10px;
            }
            .nav-item.active {
                color: #ff9fb5;
            }
            .main-content {
                height: calc(844px - 44px - 60px - 57px);
                overflow-y: auto;
                padding-bottom: 20px;
            }
            .avatar-section {
                display: flex;
                flex-direction: column;
                align-items: center;
                background-color: #ffffff;
                padding: 20px 16px;
                border-bottom: 1px solid #f0f0f0;
            }
            .avatar {
                width: 80px;
                height: 80px;
                border-radius: 50%;
                object-fit: cover;
                margin-bottom: 10px;
                border: 2px solid #fff;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            }
            .user-name {
                font-size: 18px;
                font-weight: 600;
                margin-bottom: 4px;
                color: #333;
            }
            .user-status {
                font-size: 13px;
                color: #999;
                margin-bottom: 12px;
                display: flex;
                align-items: center;
            }
            .user-status i {
                margin-right: 4px;
                color: #ff9fb5;
            }
            .edit-profile-btn {
                font-size: 13px;
                color: #ff9fb5;
                background-color: #fff0f3;
                padding: 6px 12px;
                border-radius: 16px;
                display: flex;
                align-items: center;
            }
            .edit-profile-btn i {
                margin-right: 4px;
            }
            .section-divider {
                height: 8px;
                background-color: #f5f5f5;
            }
            .info-section {
                background-color: #ffffff;
                padding: 0 16px;
            }
            .info-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 12px 0;
                border-bottom: 1px solid #f5f5f5;
            }
            .info-title {
                font-size: 16px;
                font-weight: 500;
                color: #333;
            }
            .info-action {
                font-size: 13px;
                color: #999;
            }
            .info-item {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 16px 0;
                border-bottom: 1px solid #f5f5f5;
            }
            .info-item:last-child {
                border-bottom: none;
            }
            .info-label {
                display: flex;
                align-items: center;
                font-size: 15px;
                color: #333;
            }
            .info-label i {
                width: 24px;
                height: 24px;
                margin-right: 10px;
                text-align: center;
                color: #ff9fb5;
            }
            .info-value {
                font-size: 14px;
                color: #666;
                display: flex;
                align-items: center;
            }
            .info-value i {
                margin-left: 6px;
                color: #ccc;
            }
            .health-card {
                background-color: #ffffff;
                margin: 0 16px 16px;
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            }
            .health-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 12px 16px;
                background-color: #ffeaef;
            }
            .health-title {
                font-size: 15px;
                font-weight: 500;
                color: #ff6b8b;
                display: flex;
                align-items: center;
            }
            .health-title i {
                margin-right: 6px;
            }
            .health-action {
                font-size: 12px;
                color: #ff6b8b;
            }
            .health-status {
                display: flex;
                justify-content: space-around;
                padding: 16px;
            }
            .status-item {
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            .status-value {
                font-size: 16px;
                font-weight: 600;
                color: #333;
                margin-bottom: 4px;
            }
            .status-label {
                font-size: 12px;
                color: #999;
            }
            .record-section {
                background-color: #ffffff;
                padding: 16px;
                margin-bottom: 16px;
            }
            .record-header {
                display: flex;
                justify-content: space-between;
                margin-bottom: 16px;
            }
            .record-title {
                font-size: 16px;
                font-weight: 500;
            }
            .record-action {
                font-size: 13px;
                color: #999;
            }
            .record-cards {
                display: flex;
                overflow-x: auto;
                gap: 12px;
                padding-bottom: 8px;
            }
            .record-card {
                flex: 0 0 auto;
                width: 110px;
                background-color: #f9f9f9;
                border-radius: 8px;
                padding: 12px;
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            .record-icon {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                display: flex;
                justify-content: center;
                align-items: center;
                margin-bottom: 8px;
                color: white;
                font-size: 16px;
            }
            .record-name {
                font-size: 12px;
                font-weight: 500;
                margin-bottom: 4px;
            }
            .record-data {
                font-size: 10px;
                color: #999;
            }
            .bg-pink {
                background-color: #ff9fb5;
            }
            .bg-blue {
                background-color: #64b5f6;
            }
            .bg-purple {
                background-color: #ba68c8;
            }
            .bg-amber {
                background-color: #ffb74d;
            }
            .toggle-switch {
                position: relative;
                display: inline-block;
                width: 42px;
                height: 22px;
            }
            .toggle-switch input {
                opacity: 0;
                width: 0;
                height: 0;
            }
            .slider {
                position: absolute;
                cursor: pointer;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: #ccc;
                transition: 0.4s;
                border-radius: 22px;
            }
            .slider:before {
                position: absolute;
                content: '';
                height: 18px;
                width: 18px;
                left: 2px;
                bottom: 2px;
                background-color: white;
                transition: 0.4s;
                border-radius: 50%;
            }
            input:checked + .slider {
                background-color: #ff9fb5;
            }
            input:checked + .slider:before {
                transform: translateX(20px);
            }
        </style>
    </head>
    <body>
        <div class="device-container">
            <!-- iOS状态栏 -->
            <div class="status-bar">
                <span>9:41</span>
                <div class="flex items-center">
                    <i class="fas fa-signal mr-1"></i>
                    <i class="fas fa-wifi mr-1"></i>
                    <i class="fas fa-battery-full"></i>
                </div>
            </div>

            <!-- 页面头部 -->
            <div class="header">
                <div class="flex items-center">
                    <i class="fas fa-chevron-left mr-4"></i>
                    <h1 class="text-lg font-medium">个人资料</h1>
                </div>
                <i class="fas fa-cog"></i>
            </div>

            <!-- 主内容区 -->
            <div class="main-content">
                <!-- 头像部分 -->
                <div class="avatar-section">
                    <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="用户头像" class="avatar" />
                    <div class="user-name">李小花</div>
                    <div class="user-status">
                        <i class="fas fa-circle text-xs"></i>
                        <span>备孕中 · 计划2024生宝宝</span>
                    </div>
                    <div class="edit-profile-btn">
                        <i class="fas fa-edit"></i>
                        <span>编辑资料</span>
                    </div>
                </div>

                <!-- 健康卡片 -->
                <div class="health-card">
                    <div class="health-header">
                        <div class="health-title">
                            <i class="fas fa-heart"></i>
                            <span>健康数据</span>
                        </div>
                        <div class="health-action">更多数据 ></div>
                    </div>
                    <div class="health-status">
                        <div class="status-item">
                            <div class="status-value">26</div>
                            <div class="status-label">年龄</div>
                        </div>
                        <div class="status-item">
                            <div class="status-value">165cm</div>
                            <div class="status-label">身高</div>
                        </div>
                        <div class="status-item">
                            <div class="status-value">52kg</div>
                            <div class="status-label">体重</div>
                        </div>
                        <div class="status-item">
                            <div class="status-value">19.1</div>
                            <div class="status-label">BMI</div>
                        </div>
                    </div>
                </div>

                <!-- 分隔 -->
                <div class="section-divider"></div>

                <!-- 基本信息 -->
                <div class="info-section">
                    <div class="info-header">
                        <div class="info-title">基本信息</div>
                        <div class="info-action">管理 ></div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas fa-calendar-alt"></i>
                            <span>出生日期</span>
                        </div>
                        <div class="info-value">
                            <span>1998-05-15</span>
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas fa-phone"></i>
                            <span>手机号码</span>
                        </div>
                        <div class="info-value">
                            <span>138****5678</span>
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas fa-envelope"></i>
                            <span>邮箱地址</span>
                        </div>
                        <div class="info-value">
                            <span>li****@gmail.com</span>
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                </div>

                <!-- 分隔 -->
                <div class="section-divider"></div>

                <!-- 生理信息 -->
                <div class="info-section">
                    <div class="info-header">
                        <div class="info-title">生理信息</div>
                        <div class="info-action">管理 ></div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas fa-calendar"></i>
                            <span>初次月经年龄</span>
                        </div>
                        <div class="info-value">
                            <span>13岁</span>
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas fa-clock"></i>
                            <span>平均月经周期</span>
                        </div>
                        <div class="info-value">
                            <span>28天</span>
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas fa-tint"></i>
                            <span>平均经期长度</span>
                        </div>
                        <div class="info-value">
                            <span>5天</span>
                            <i class="fas fa-chevron-right"></i>
                        </div>
                    </div>
                </div>

                <!-- 分隔 -->
                <div class="section-divider"></div>

                <!-- 记录统计 -->
                <div class="record-section">
                    <div class="record-header">
                        <div class="record-title">记录统计</div>
                        <div class="record-action">查看全部 ></div>
                    </div>
                    <div class="record-cards">
                        <div class="record-card">
                            <div class="record-icon bg-pink">
                                <i class="fas fa-calendar-check"></i>
                            </div>
                            <div class="record-name">月经记录</div>
                            <div class="record-data">27次</div>
                        </div>
                        <div class="record-card">
                            <div class="record-icon bg-blue">
                                <i class="fas fa-thermometer-half"></i>
                            </div>
                            <div class="record-name">基础体温</div>
                            <div class="record-data">69次</div>
                        </div>
                        <div class="record-card">
                            <div class="record-icon bg-purple">
                                <i class="fas fa-capsules"></i>
                            </div>
                            <div class="record-name">服药记录</div>
                            <div class="record-data">18次</div>
                        </div>
                        <div class="record-card">
                            <div class="record-icon bg-amber">
                                <i class="fas fa-utensils"></i>
                            </div>
                            <div class="record-name">饮食记录</div>
                            <div class="record-data">32次</div>
                        </div>
                    </div>
                </div>

                <!-- 隐私设置 -->
                <div class="info-section">
                    <div class="info-header">
                        <div class="info-title">隐私设置</div>
                    </div>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas fa-user-friends"></i>
                            <span>经期与排卵数据共享</span>
                        </div>
                        <label class="toggle-switch">
                            <input type="checkbox" checked />
                            <span class="slider"></span>
                        </label>
                    </div>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas fa-bell"></i>
                            <span>重要提醒共享</span>
                        </div>
                        <label class="toggle-switch">
                            <input type="checkbox" checked />
                            <span class="slider"></span>
                        </label>
                    </div>
                    <div class="info-item">
                        <div class="info-label">
                            <i class="fas fa-shield-alt"></i>
                            <span>个人健康数据保密</span>
                        </div>
                        <label class="toggle-switch">
                            <input type="checkbox" />
                            <span class="slider"></span>
                        </label>
                    </div>
                </div>
            </div>

            <!-- 底部导航栏 -->
            <div class="nav-bar">
                <div class="nav-item">
                    <i class="fas fa-home text-xl mb-1"></i>
                    <span>首页</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-notes-medical text-xl mb-1"></i>
                    <span>记录</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-book-medical text-xl mb-1"></i>
                    <span>知识库</span>
                </div>
                <div class="nav-item">
                    <i class="fas fa-user-friends text-xl mb-1"></i>
                    <span>伴侣空间</span>
                </div>
                <div class="nav-item active">
                    <i class="fas fa-user text-xl mb-1"></i>
                    <span>我的</span>
                </div>
            </div>
        </div>
    </body>
</html>
